package mybatis.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author 汤舒青
 * @Version 1.0
 */


public class ExamResult implements Serializable {
    private int id;
    private Date examDate;
    private int score;
    private int stId;
    private int sbId;
    private Subject s;

    public ExamResult() {

    }

    public Subject getS() {
        return s;
    }

    public void setS(Subject s) {
        this.s = s;
    }

    public ExamResult(int id, Date examDate, int score, int stId, int sbId) {
        this.id = id;
        this.examDate = examDate;
        this.score = score;
        this.stId = stId;
        this.sbId = sbId;
    }

    public ExamResult(Date examDate, int score, int stId, int sbId) {
        this.examDate = examDate;
        this.score = score;
        this.stId = stId;
        this.sbId = sbId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Date getExamDate() {
        return examDate;
    }

    public void setExamDate(Date examDate) {
        this.examDate = examDate;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public int getStId() {
        return stId;
    }

    public void setStId(int stId) {
        this.stId = stId;
    }

    public int getSbId() {
        return sbId;
    }

    public void setSbId(int sbId) {
        this.sbId = sbId;
    }

    @Override
    public String toString() {
        return "ExamResult{" +
                "id=" + id +
                ", examDate=" + examDate +
                ", score=" + score +
                ", stId=" + stId +
                ", sbId=" + sbId +
                ", s=" + s +
                '}';
    }
}
